/* 
 * File:   fileutils.h
 * Author: Luis Aguirre.
 * Description: Provide utils to manage files.
 *
 * Created on jule 17 , 2013, 06:39 PM
 */

#ifndef FILEUTILS_H
#define	FILEUTILS_H



/**
 * Check if the file or directory in the given path exist.
 * 
 * @param path Path to check.
 * 
 * @return true if the file or directory exist, false in other case.
 */
bool exist(const char* path);

/**
 * Check if the file in the given path is a directory. If the path doesn't exist return false.
 * 
 * @param path Path to find out if is a directory.
 * 
 * @return true if the file in the given path is a directory, false in other case.
 */
bool isDirectory(const char* path);

#endif	/* FILEUTILS_H */

